<?php
   /*
   * Copyright (C) 2009 Jeffrey Palm
   */

   /*
   * Define TITLE_PREFIX for paging.
   */
   require_once BASE . 'include.php';
   ?>
<html>
  <head>
    <?php
       if (defined('KEYWORDS')) {
       echo '<meta name="keywords" content="';
       echo KEYWORDS;
       echo '">';
       echo '</meta>';
       echo "\n";
       }
       ?>
    <title><?php echo (TITLE ? NAME_CAPS . ' :: ' . TITLE : NAME_CAPS); ?></title>
    <link rel="stylesheet" href="<?php echo BASE; ?>css/main.css" type="text/css" media="screen">
    <link rel="stylesheet" href="<?php echo BASE; ?>css/menu.css" type="text/css" media="screen">
		<script type="text/javascript" src="<?php echo BASE; ?>js/prototype.js"></script>
		<script type="text/javascript" src="<?php echo BASE; ?>js/scriptaculous.js"></script>
    <script type="text/javascript" src="<?php echo BASE; ?>js/main.js" ></script>
  </head>
  <body>

    <div style="width:100%; height:7%; margin:2px">
    <a name="top"></a>
      <div  id="maintitle"><a href="<?php echo BASE; ?>"><img src="<?php echo BASE; ?>/img/logo.png" /></a></div>
      <div id="submaintitle_wrapper">
        <div id="submaintitle"><?php echo SUB_MAIN_TITLE; ?></div>
        <div id="submaintitle_right">
          <a href="<?php echo BASE; ?>">HOME</a> &nbsp;
          <a href="<?php echo BASE; ?>about/">ABOUT</a> &nbsp; 
          <a href="<?php echo BASE; ?>changes/">CHANGES</a> &nbsp;
          <a href="<?php echo BASE; ?>help/">HELP</a> &nbsp;
        </div>
        <hr/>
        <div id="submaintitle_under">
    <?php
underLink(isNormal(),'map','Map');
underLink(isTable(),'table','Table');
underLink(isAlphabetical(),'alphabetical','List');
underLink(isSearch(),'search','Search');
underLink(isIPhone(),'iphone','IPhone');
?>
        </div>
      </div>
      <?php
         if (TITLE != NULL) {
         if (defined(TITLE_PREFIX) && TITLE_PREFIX != NULL) {

         }
         echo '<span id="title">';
         echo TITLE;
         echo '</span>';
         }?>

    </div>

    <div id="content">
      <?php if ((SMALL_CONTENT)) echo '<div id="small-content">'; ?>
